<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ include file="../common/include/header.jsp" %>
<div>
<table border="0" cellpadding="0" cellspacing="0" width="980px">
	<tr>
		<td style="vertical-align: top;width: 180px;background-color: #499d64;text-align: center;">
			<div style="width: 180px;height: 40px;background: black;color: white;font-weight: bold;text-align: center;padding-top: 20px;">
				<span>사이트맵</span>
			</div>
		</td>
		<td style="text-align: center;width: 800px;vertical-align: top;padding-top: 30px;padding-bottom: 30px;">
			<table style="width: 600px;border: 1px solid #499d64;" cellpadding="0" cellspacing="1">
				<tr>
					<td colspan="6" style="height: 60px;background: #499d64;color: white;"><img src="<%=imagePath %>sitemap.jpg" border="0"/></td>
				</tr>
				<tr>
					<td class="sitemapTd">Home</td>
					<td class="sitemapTd">일본정보</td>
					<td class="sitemapTd">게시판</td>
				</tr>
				<tr>
					<td class="sitemapTd2">
						<div class="sitemapLink"><html:link action="/welcome" module="">Home</html:link></div>
						<div class="sitemapLink"><html:link action="/signin" module="/member">가입</html:link></div>
						
						<div class="sitemapLink"><a href="<%=path%>/member/viewaction.do?method=viewInfo&mid=<%=user.getMid()%>" onclick="return logincheck()">정보변경</a></div>
						<div class="sitemapLink"><html:link action="/findpass" module="/member">아이디 찾기</html:link></div>
						<div class="sitemapLink"><html:link action="/signout" module="/member">탈퇴</html:link></div>
					</td>
					<td class="sitemapTd2">
						<logic:notEmpty name="smForm" property="freeV">
							<logic:iterate id="free" name="smForm" property="freeV">
								<div class="sitemapLink"><a href="javascript:getBoard('<bean:write name="free" property="url"/>','<bean:write name="free" property="bname"/>');">
								<bean:write name="free" property="bname"/></a></div>
							</logic:iterate>
						</logic:notEmpty>	
					</td>
					<td class="sitemapTd2">
						<logic:notEmpty name="smForm" property="mainV">
							<logic:iterate id="main" name="smForm" property="mainV">
								<div class="sitemapLink"><a href="javascript:getBoard('<bean:write name="main" property="url"/>','<bean:write name="main" property="bname"/>');">
								<bean:write name="main" property="bname"/></a></div>
							</logic:iterate>
						</logic:notEmpty>
					</td>
				</tr>
				<tr>
					<td class="sitemapTd">자치회</td>
					<td class="sitemapTd">자료실</td>
					<td class="sitemapTd">갤러리</td>	
				</tr>
				<tr>
					<td class="sitemapTd2" rowspan="3">
						<div class="sitemapLink"><html:link action="/intro" module="">자치회 소개</html:link></div>
						<div class="sitemapLink"><html:link action="/comm" module="">자치회장 인사말</html:link></div>
						<div class="sitemapLink"><html:link action="/organogram" module="">자치회 조직도</html:link></div>
						<div class="sitemapLink"><html:link action="/rules" module="">자치회 규칙</html:link></div>
					</td>
					<td class="sitemapTd2" rowspan="3">
						<logic:notEmpty name="smForm" property="dataV">
							<logic:iterate id="data" name="smForm" property="dataV">
								<div class="sitemapLink"><a href="javascript:getBoard('<bean:write name="data" property="url"/>','<bean:write name="data" property="bname"/>');">
								<bean:write name="data" property="bname"/></a></div>
							</logic:iterate>
						</logic:notEmpty>
					</td>
					<td class="sitemapTd2">
						<logic:notEmpty name="smForm" property="photoV">
							<logic:iterate id="photo" name="smForm" property="photoV">
								<div class="sitemapLink"><a href="javascript:getBoard('<bean:write name="photo" property="url"/>','<bean:write name="photo" property="bname"/>');">
								<bean:write name="photo" property="bname"/></a></div>
							</logic:iterate>
						</logic:notEmpty>
					</td>					
				</tr>
				<tr>
					<td class="sitemapTd">커뮤니티</td>
				</tr>
				<tr class="sitemapTd2">
					<td><div class="sitemapLink"><html:link action="/communitymain" module="/community">커뮤니티</html:link></div></td>
				</tr>
				
			</table>
		</td>
	</tr>
</table>
</div>
<script type="text/javascript">
	function getBoard(u,b){
		var url = '/MyIteaProject/board/'+u;
		url = url + escape(encodeURIComponent(b));
		location.href=url;
	}
	
	function logincheck(){
		if(<%=user.isLogon()%>){
			return true;
		}else{
			alert("로그인 후 이용 가능");
			return false;
		}
	}
</script>
<%@ include file="../common/include/footer.jsp" %>